package org.jackysoft.service;

import java.util.Collection;

import org.jackysoft.data.ServiceProvider;
import org.jackysoft.entity.ActionNode;
import org.jackysoft.entity.GlobalActionsNode;
import org.jackysoft.entity.GlobalConditionsNode;
import org.jackysoft.entity.InitialActionsNode;
import org.jackysoft.entity.JoinNode;
import org.jackysoft.entity.RegistersNode;
import org.jackysoft.entity.SplitNode;
import org.jackysoft.entity.StepNode;
import org.jackysoft.entity.TriggerFunctionNode;
import org.jackysoft.entity.WorkflowNode;

public interface WorkflowNodeService extends ServiceProvider<WorkflowNode> {

	Collection<WorkflowNode> getSimples();
	
	String getXml(String refname);
	
	ActionNode getActionNode(int id, String wfname);
	
	StepNode getStepNode(long id, String wfname);
	
	JoinNode getJoinNode(int id,String refname);
	
	SplitNode getSplitNode(int id ,String refname);
	

	InitialActionsNode getInitialActionsNode(String wfname);

	GlobalActionsNode getGlobalActionsNode(String wfname);

	GlobalConditionsNode getGlobalConditionsNode(String wfname);

	RegistersNode getRegistersNode(String wfname);

	TriggerFunctionNode getTriggerFunctionNode(int triggerId, String wfname);

}
